﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

using LeMigue.TeamPortal.Base.Globalization;

namespace LeMigue.TeamPortal.Base.Mvc
{
    [AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
    public class MainMenu : AbstractPluginAttribute
    {
        private string _keyMenu;
        public int Ordem { get; private set;}
        public string Title { get; private set; }

        public MainMenu(string keyMenu, int ordem)
        {

            _keyMenu = keyMenu;
            Ordem = ordem;
        }

        internal override void Ini()
        {
            Title = this.Tipo.Assembly.Resource(_keyMenu);
        }


    }
}
